41. Naming Conventions

Note

The below information is extensively based in information taken from the PowerShell® Notes for Professionals book. I plan to extend this information based on my day to day usage of the language.

41.1: Functions

1
Get-User()
  • Use Verb-Noun pattern while naming a function.
  • Verb implies an action e.g. Get, Set , New, Read, Write and many more. See approved verbs.
  • Noun should be singular even if it acts on multiple items. Get-User() may return one or multiple users.
  • Use Pascal case for both Verb and Noun. E.g. Get-UserLogin()